#!/bin/bash -e

rm -rf ./dl-assets/
mkdir -p ./dl-assets/
pushd dl-assets/
wget https://ap-southeast-3-hwcloudcli.obs.ap-southeast-3.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz
tar xvf huaweicloud-cli-linux-amd64.tar.gz
rm -vf huaweicloud-cli-linux-amd64.tar.gz
popd
dpkg-buildpackage -us -uc
lintian ../huawei-cloud-koocli_3.4.12~spark1_amd64.deb
